package com.example.webmodule.feign;

import com.example.webmodule.vo.BodyData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "module-b")
public interface MyFeignClient {
    @GetMapping("/web/module2/api/resource/{id}")
    BodyData getResource(@PathVariable("id") Long id);
}
